/**
 * Copyright© 2003-2019 浙江汇信科技有限公司, All Rights Reserved. <br/>
 */
package com.icinfo.cloud.provider.punish.ucase.casemain.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;


/**
 * 描述: 案件文书记录表-TRJ case_document_record 对应的实体类.<br>
 * WARNING：不是表中字段的属性必须加@Transient注解
 * @author framework generator
 * @date 2022年02月15日
 */
@Table(name = "upcase.case_document_record")
@Data
public class CaseDocumentRecord implements Serializable {
    /**
     * 主键
     */
    @Id
    @Column(name = "id")
    private String id;

    /**
     * 案件id
     */
    @Column(name = "case_id")
    private String caseId;

    /**
     * 案件阶段名称
     */
    @Column(name = "case_stage_name")
    private String caseStageName;

    /**
     * 案件阶段编码
     */
    @Column(name = "case_stage_code")
    private String caseStageCode;

    /**
     * 案件环节名称
     */
    @Column(name = "case_link_name")
    private String caseLinkName;

    /**
     * 案件环节编码
     */
    @Column(name = "case_link_code")
    private String caseLinkCode;

    /**
     * 文书目录编码
     */
    @Column(name = "document_catalog_code")
    private String documentCatalogCode;

    /**
     * 文书地址
     */
    @Column(name = "document_url")
    private String documentUrl;

    /**
     * 文书创建时间
     */
    @Column(name = "document_create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime documentCreateTime;

    /**
     * 文书审核状态
     */
    @Column(name = "document_approval_status")
    private String documentApprovalStatus;

    /**
     * 文书送达状态
     */
    @Column(name = "document_sent_status")
    private String documentSentStatus;

    /**
     * 文书签字捺印状态
     */
    @Column(name = "document_signstamped_status")
    private String documentSignstampedStatus;

    /**
     * 文书内容
     */
    @Column(name = "document_content")
    private String documentContent;

    /**
     * 文书审核状态：notSubmit 待提交 ，pending  审批中  ，pass 审核完成通过，return 审核完成退回
     */
    @Column(name = "document_audit_status")
    private String documentAuditStatus;
    /**
     * 盖章后文书地址
     */
    @Column(name = "document_url_after_seal")
    private String documentUrlAfterSeal;

    /**
     * 盖章后文书地址
     */
    @Column(name = "document_url_after_sign")
    private String documentUrlAfterSign;

    /**
     * 签字时间（当事人）
     */
    @Column(name = "sign_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime signTime;

    /**
     * 送达时间
     */
    @Column(name = "sent_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime sentTime;
    /**
     * 文书文号
     */
    @Column(name = "document_number")
    private String documentNumber;

    /**
     * 送达截止日期
     */
    @Column(name = "sent_deadline")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private LocalDate sentDeadline;

    /**
     * 审批通过时间
     */
    @Column(name = "document_approval_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime documentApprovalTime;
    /**
     * 创建人姓名
     */
    @Column(name = "create_user_name")
    private String createUserName;
    /**
     * 创建人id
     */
    @Column(name = "create_user_id")
    private String createUserId;
    /**
     * 空白文书地址
     */
    @Column(name = "document_url_blank")
    private String documentUrlBlank;

    /**
     * 当事人id
     */
    @Column(name = "party_id")
    private String partyId;

    /**
     * 文书状态 0无效  1:正常 2:草稿 3:撤回
     */
    @Column(name = "document_record_status")
    private String documentRecordStatus;

    /**
     * 文书模板类型1：标准2：窄幅
     */
    @Column(name = "document_template_type")
    private String documentTemplateType;

    /**
     * 打印文书地址
     */
    @Column(name = "document_url_print")
    private String documentUrlPrint;
    /**
     * 案件副流程id
     */
    @Column(name = "case_assist_id")
    private String caseAssistId;
    /**
     * 文书模版编码
     */
    @Column(name = "document_template_code")
    private String documentTemplateCode;
    /**
     * 是否浙里办送达地址确认书,默认-0否，1-是
     */
    @Column(name = "zlb_service")
    private String zlbService;
    /**
     * 浙里办送达地址确认书发送短信手机号码
     */
    @Column(name = "zlb_service_phone")
    private String zlbServicePhone;
    /**
     * 是否浙里办签字确认,默认-0否，1-是
     */
    @Column(name = "zlb_sign")
    private String zlbSign;
    /**
     * 浙里办签字确认发送短信手机号码
     */
    @Column(name = "zlb_sign_phone")
    private String zlbSignPhone;
    /**
     * 送达浙里办确认书时间
     */
    @Column(name = "zlb_service_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime zlbServiceTime;

    /**
     * 发送浙里办签字时间
     */
    @Column(name = "zlb_sign_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime zlbSignTime;
    /**
     * 送达到浙里办的人名称（存在委托人和当事人）
     */
    @Column(name = "zlb_service_name")
    private String zlbServiceName;
    /**
     * 需要签字的人名称（存在委托人和当事人）
     */
    @Column(name = "zlb_sign_name")
    private String zlbSignName;

    /**
     * 是否变更文书 0:否 1:是
     */
    @Column(name = "is_modify_record")
    private String isModifyRecord;

    /**
     * 关联操作补正更正文书的id
     */
    @Column(name = "relation_document_id")
    private String relationDocumentId;
    /**
     * 关联审批表id
     */
    @Column(name = "relation_approval_document_id")
    private String relationApprovalDocumentId;
    private static final long serialVersionUID = 1L;

}
